package com.gxa.jjty.core.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 意见投诉实体
 * @ClassName Complaint
 * @Author: ws
 * @date 2021/12/9 9:28
 */
@Data
@NoArgsConstructor
@AllArgsConstructor

@Table(name = "complaint")
@ApiModel("意见投诉的实体")
public class Complaint implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;

    @Column(name = "created_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Timestamp createdTime;

    @Column(name = "handicapped_id")
    private Long handicappedId;

    @Column(name = "name")
    private String name;

    @Column(name = "phone")
    private String phone;

    @Column(name = "content")
    private String content;

}
